package Flap::App;
use Flap qw/-b Flap::Object -m -r -s -w/;

sub app_config {
    my $app = shift;
    $app->project->config->apps->{$app->app_name} || $app->default_config;
}

sub app_name { substr($_[0]->_class_, length($_[0]->project) + 2) }

sub app_root { $_[0]->project_root.'/apps/'.$_[0]->app_name }

1;
